<?php
namespace app\admin\common\controller;

use think\Controller;
class Base extends Controller
{
    protected function _initialize()
    {

    }

    public function isLogin()
    {
        //检查管理员用户是否登录
        if(!session('?admin_id'))
            $this->error('请先登录！','admin/user/login');
    }

}
